/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.biz.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author yiwei.he
* @date 2024-03-19
**/
@Data
@TableName("tz_profession_detail")
public class ProfessionDetail implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增id")
    private Long id;

    @ApiModelProperty(value = "专业名称")
    private String professionName;

    @ApiModelProperty(value = "专业类型【0：本科 1：专科】")
    private Integer professionType;

    @ApiModelProperty(value = "专业介绍")
    private String professionDetail;

    @ApiModelProperty(value = "考研方向")
    private String postgraduateDirection;

    @ApiModelProperty(value = "主要课程")
    private String professionSubject;

    @ApiModelProperty(value = "就业方向")
    private String jobDirection;

    @ApiModelProperty(value = "学位")
    private String degree;


    public void copy(ProfessionDetail source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
